<?php
define('MINI_RUN', true);
require 'mini.php';
Mini::checkLogin();
?>
<!DOCTYPE html>
<html>
<head>
	<title>执行SQL语句--<?=Mini::NAME?>后台管理系统</title>	
</head>
<?=Mini::ADMIN_CSS?>
<body>
<p class="msg">请输入SQL语句</p>
<p>SQL语句(select语句无效)</p>
<form>
<input name="op" type="hidden" value="execsql" />
<textarea name="sql" id="sql" rows="5" cols="80"></textarea><br />
<p><input id="btn" type="button" value="执行SQL"/></p>
</form>
<?=Mini::JQUERY_JS?>
<?=Mini::ADMIN_JS?>
<script type="text/javascript">
$(function(){
	$("#btn").click(function(){
		if(checkValue("#sql","SQL语句")) return false;		
		setAction(<?=Mini::AJAX_SET?>,$("form").serialize(),"执行SQL语句");
	});
});
</script>
</body>
</html>
